//
//  FJYPopView.h
//  PopView
//
//  Created by lanou on 16/1/6.
//  Copyright © 2016年 FJY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, ButtonClick) {
    ButtonClickOfOK = 0,
    ButtonClickOfCancel = 1
};

typedef void(^call)(ButtonClick buttonIndex);








@interface FJYPopView : NSObject

@property (nonatomic, copy) call okClickBlock;
@property (nonatomic, copy) call cancelClickBlock;

+ (FJYPopView *)sharedFJYPopView;
+ (void)popViewShow:(UIView *)view title:(NSString *)title detail:(NSString *)detail okButton:(NSString *)ok cancelButton:(NSString *)cancel okButtonCall:(call)okCall cancel:(call)cancelCall;

- (void)setBgViewColor:(UIColor *)color;
- (void)popViewDisappear;

@end
